import App from './App'

import Vue from 'vue'

import tui from './common/tui.js' // 普通的快速工具类
import cacheHelper from './common/cacheHelper.js' // 缓存工具类
import api from './common/api/api.js' //api 接口
import constant from './constant/constant.js' // 常量
import utils from './utils/util.js'
import store from './store' //vuex
import uploadFile from './utils/uploadFile.js'

import compareWithHistory from './utils/photo_hash.js'

import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue" //下拉组件
Vue.component('mescroll-body', MescrollBody) //下拉组件

import VConsole from 'vconsole';
// if(api.baseUrl != 'https://haocheyishengstore.autoafs.com/prod-api'){	
// const vConsole = new VConsole();
// }

import uView from "uview-ui";
Vue.use(uView);

Vue.prototype.tui = tui
Vue.prototype.api = api
Vue.prototype.utils = utils
Vue.prototype.$store = store
Vue.prototype.uploadFile = uploadFile
Vue.prototype.compareWithHistory = compareWithHistory


App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()